home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / MCASM.RAR / MC_ASM.EXE / WROX_ASM / CH4 / PROG4_5.ASM < prev    next >
Assembly Source File  |  1994-11-14  |  589b  |  28 lines

  1.  
  2. **************************************************************** 
  3.     Program 4.5 Detecting Tracing by Means of Command Pipeline
  4. ****************************************************************    
  5.  
  6.     dosseg
  7.     .model small
  8.     .data
  9.         mess db 'We are free',10,13,'$'
  10.         trace db 'We are being traced',10,13,'$'
  11.     .code
  12.                 mov ax,@data
  13.                 mov ds,ax
  14.     
  15.                 lea dx,mess
  16.     Modify:        mov byte ptr cs:m+1,0        ; Zero jump distance at m
  17.     m:
  18.                 jmp short norm_ex
  19.                 lea dx,trace
  20.     norm_ex:
  21.                 mov ah,9
  22.                 int 21h                ; Output string
  23.     
  24.                 mov ah,4ch
  25.                 int 21h                ; Terminate
  26.     end
  27.  
  28.